package com.tencent.iov.cowin.befsale.clue.repository.tenant;

import com.software.boot.common.entity.Response;
import com.tencent.iov.cowin.befsale.clue.dao.http.tenant.request.QueryDictionariesRequest;
import com.tencent.iov.cowin.befsale.clue.dao.http.tenant.response.DictionariesResponse;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @Author xiamu
 * @Date 2022/1/29 10:58
 * @Version 1.0
 **/
public interface TenantManager {
    /**
     * 获取字典code与名称 按code分组
     * @param request 参数
     * @return 字典信息
     */
    Map<String, String> getDicMapGroupByCode(QueryDictionariesRequest request);

    /**
     * 根据参数获取字典信息
     * @param request 参数
     * @return 字典列表
     */
    List<DictionariesResponse> getDicListByParam(QueryDictionariesRequest request);

    /**
     * 根据父级查询字典
     * @param parentCode
     * @return
     */
    List<DictionariesResponse> getListByParentCode(String parentCode);
}
